﻿@using MVCSoict.Views.Shared.Data
@model IEnumerable<MVCSoict.Models.Title>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Danh sách học hàm</h2>
@Html.Partial("_PaginationPartial")

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.title1)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.title1)
        </td>
        <td>
		  	@Html.Partial("_ControlPartial2", new Item { ID = item.tid.ToString() })
        </td>
    </tr>
}

</table>
<script src="/Scripts/Soict/Title.js" defer="defer"></script>